package com.example.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class OrderEvent extends Event {
    private String orderId;
    private String userId;
    private double amount;
    private String status; // "CREATED", "PAID", "SHIPPED", "DELIVERED", "CANCELLED"
    
    public OrderEvent() {
        super("ORDER_EVENT");
    }
    
    public OrderEvent(String orderId, String userId, double amount, String status) {
        super("ORDER_EVENT");
        this.orderId = orderId;
        this.userId = userId;
        this.amount = amount;
        this.status = status;
    }
} 